==========================================================
License information for StarRocks third-party dependencies
==========================================================

This directory contains scripts which download and install several third-party
dependencies of StarRocks. And for producation builds, most of these dependencies
are statically linked into the StarRocks binaries. Some of dependencies are optional
for StarRocks build.

Most of these dependencies' licenses are compatible with Apache License Version 2.0.
But serverl dependencies are under imcompatible licenses.

This file will give an interpretation of these licenses.

============================================================================================
LZ4
source: https://github.com/lz4/lz4

This repository uses 2 different licenses :
- all files in the `lib` directory use a BSD 2-Clause license
- all other files use a GPLv2 license, unless explicitly stated otherwise

StarRocks only dependents on features implemented in the `lib` directory, which are under BSD 2-Clause license.

============================================================================================
RapidJSON
source: https://github.com/Tencent/rapidjson/

RapidJSON source code is licensed under the MIT License, except for the third-party components listed below
which are subject to different license terms. Your integration of RapidJSON into your own projects may require
compliance with the MIT License, as well as the other licenses applicable to the third-party components included
within RapidJSON. To avoid the problematic JSON license in your own projects, it's sufficient to exclude the
bin/jsonchecker/ directory, as it's the only code under the JSON license.

StarRocks only dependents on the source files in `include/rapidjson` directory, which are under MIT License.

============================================================================================
RocksDB
source: https://github.com/facebook/rocksdb

RocksDB is dual-licensed under both the GPLv2 (found in the COPYING file in the root directory) and
Apache 2.0 License (found in the LICENSE.Apache file in the root directory)

StarRocks selects Apache 2.0 License of RocksDB.

============================================================================================
mariadb-connector-c
source: https://github.com/mariadb-corporation/mariadb-connector-c

This is LGPL MariaDB client library that can be used to connect to MySQL
or MariaDB.

This code is based on the LGPL libmysql client library from MySQL 3.23
and PHP's mysqlnd extension.

This product includes PHP software, freely available from
<http://www.php.net/software/>

If you want to be part of this development effort, you can discuss this at
maria-developers@lists.launchpad.org.

To report a bug you'll need to signup for an account at https://jira.mariadb.org

The MariaDB team
